<include file="Public/head"/>
<body class="no-skin">
<include file="Public/header"/>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            //ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <include file="Public/sidebar"/>
	<div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs"/>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set"/>
                <!-- /section:settings.box -->
                <div class="row">
                    <div class="col-xs-12">
						<div id="bill-detail" class="bill-detail">
							<div class="container-fluid">
								<div class="row" data-bind="with: request">
									<div class="col-sm-6">
										<div class="bill-cell">
											<label data-bind="html: user.type_text">{$auth_group[$user['level']]}</label>
											<div class="value">
												<span>{$user['user']}</span>
												<i class="fa fa-copy" title="" style="cursor:pointer;font-size:13px" ></i>
											</div>
										</div>
									</div>
									<div class="col-sm-6">
										<div class="bill-cell">
											<label>提交时间</label>
											<div class="value">
												<span class="text-primary">{$WithdrawLog['create_time']}</span>
											</div>
										</div>
									</div>
								</div>
								<div class="row" data-bind="with: request">
									<div class="col-sm-6">
										<div class="bill-cell">
											<label>提现金额</label>
											<div class="value">
												<span class="amount"><span data-bind="price: amount">￥{$WithdrawLog['amount']}</span></span>
												<i class="fa fa-copy" style="cursor:pointer;font-size:13px"></i>
											</div>
										</div>
									</div>
									<div class="col-sm-6">
										<div class="bill-cell">
											<label>打款方式</label>
											<div class="bill-bank-info value">
												<div style="margin-bottom:5px;" class="text-primary">
												<if condition="$WithdrawLog.account_type eq 1">
												<font color="#03A9F4">支付宝</font>
												<elseif condition="$WithdrawLog.account_type eq 2"/>
												<font color="#0baf11">微信</font>
												<elseif condition="$WithdrawLog.account_type eq 3"/>
												<font color="#FFC107">银行卡</font>
												</if>
												</div>
												<div>
													<label>账户名: </label>
													<span><empty name="WithdrawLog['realname']">未填写<else /> {$WithdrawLog['realname']}</empty></span>
													<i class="fa fa-copy" title="" style="cursor: pointer;font-size:13px"></i>
													<br>

													<label>帐号: </label>
													<span><empty name="WithdrawLog['alipay']">未填写<else /> {$WithdrawLog['alipay']}</empty></span>
													<i class="fa fa-copy" title="" style="cursor:pointer;font-size:13px"></i>
													<br>
												</div>

												<!-- ko if: user.mobile --><!-- /ko -->

											</div>
										</div>
									</div>
								</div>

								<table class="table table-bordered table-striped table-hover">
									<thead>
									<tr>
										<th>对应账单明细</th>
										<th class="text-right">充值金额</th>
										<th class="text-right">抽成比例</th>
										<th class="text-right">实际打款金额</th>
										<th class="text-right">账单状态</th>
									</tr>
									</thead>
									<tbody>
										<volist name="member_bills_ret" id="val">
										<tr>
											<td>
												<span>{$val['bills_date']}</span>
											</td>
											<td class="text-right">
												¥ <span>{$val['money']}</span>
											</td>
											<td class="text-right">
												<span>{$val['proportion']}%</span>
											</td>
											<td class="text-right" style="font-weight: bold;">
												¥ <span>{$val['income']}</span>
											</td>
											<td class="text-right" style="font-weight: bold;">
												<if condition="$val.status eq 2">
												<span class="hierarchy_default hierarchy_good">提现中</span>
												<elseif condition="$val.status eq 3"/>
												<span class="hierarchy_default hierarchy_fine">已打款</span>
												<else/>
												<span class="hierarchy_default">未提现</span>
												</if>
											</td>
										</tr>
										</volist>
									</tbody>
								</table>

								<hr>

								<div class="row">
									<div class="col-sm-6">
										<div class="bill-cell">
											<if condition="$WithdrawLog.status eq 1">
											<span class="status bordered status-pending2">已打款</span>
											<!--<div class="remark-lines">
												打款人: <span id="paid-by"></span>
											</div>-->
											<div class="remark-lines">
												打款时间: <span>{$WithdrawLog.pay_time}</span>
											</div>
											<div class="remark-lines">
												打款流水: <span>{$WithdrawLog.order_id}</span>
											</div>
											<!--<div class="remark-lines">
												备注:
												<span>无</span>
												<span></span>
											</div>-->
											<else/>
											<span class="status bordered status-pending">待打款</span>
											</if>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
                </div>
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
	<include file="Public/footer"/>
</div><!-- /.main-container -->
<include file="Public/footerjs"/>
<script src="__PUBLIC__/qwadmin/js/date-time/bootstrap-datepicker.js"></script>
<script type="text/javascript">
	$(function () {
		$('.form-control').datepicker({
            format: 'yyyy-mm-dd',
            weekStart: 1,
            autoclose: true,
            todayBtn: 'linked',
            language: 'cn'
        });
	});
	</script>
</body>
</html>